<extend name="./base" />

<block name="body">
    <style>
        .new li{
            line-height: 35px;
        }
        .new b{
            margin-left: 20px;
        }
        .teacher{
            color:#f00
        }
        .back{
            margin-left: 20px;
        }
        table {

        }
        table td,
        table th {
            padding: 10px;
            text-align: center;
        }
    </style>
    <div>
        <spna> 老师详情</spna>
        <spna class="back"> <a href="__ROOT__/index.php/Admin/Teacher/teacherlist">返回</a></spna>
        <hr></hr>
        <ul class="new">
            <li>
                <spna>联系电话</spna>: <b>{$data.phone}</b>
            </li>
            <li>
                <spna>老师姓名</spna>: <b>{$data.relname}</b>
            </li>
            <li>
            <spna>头像</spna>:<b><img src="__ROOT__/upload/{$data.avatar}" width="150" height="130"></b>
            </li>
            <li>
                <spna>性别</spna>:
                <b>
                    <if condition="($data.sex eq 0) "> 未知  </if>
                    <if condition="($data.sex eq 1) "> 男  </if>
                    <if condition="($data.sex eq 2) "> 女  </if>
                </b>
            </li>
            <li>
                <spna>年级</spna>: <b>{$data.grade}</b>
            </li>
            <li>
                <spna>学科</spna>: <b>{$data.lesson}</b>
            </li>
            <li>
                <spna>地址</spna>: <b>{$data.address}</b>
            </li>
            <li>
                <spna>学校</spna>: <b>{$data.school}</b>
            </li>
            <li>
                <spna>学院 & 年级 & 学号</spna>: <b>{$data.college}</b>  <b>{$data.year}</b> <b>{$data.number}</b>
            </li>
            <li>
                <spna>高考成绩</spna>: <b>{$data.score}</b>
            </li>
            <li>
                <spna>自我描述</spna>: <b>{$data.description}</b>
            </li>
            <li>
                <spna>家教经历</spna>: <b>{$data.tutor_experience}</b>
            </li>
            <li>
                <spna>个人经历</spna>: <b>{$data.person_experience}</b>
            </li>
            <li>
                <spna>审核状态</spna>:
                <b class="teacher">
                     <if condition="($data.status eq 0) "> 待审核  </if>
                     <if condition="($data.status eq 1) "> 已审核  </if>
                     <if condition="($data.status eq 2) "> 审核失败  </if>
                </b>
            </li>
            <li>
            <spna>认证状态</spna>:
            <b class="teacher">
                <if condition="($data.is_certified eq 0) "> 未认证  </if>
                <if condition="($data.is_certified eq 1) "> 已认证  </if>
            </b>
            </li>
            <li>
                <span>总平均评分</span>:
                <b>{$total}分</b>
            </li>
            <li>
                <span>知识准确度平均分</span>:
                <b>{$accuracy}分</b>
            </li>
            <li>
                <span>内容充实度平均分</span>:
                <b>{$enrich}分</b>
            </li>
            <li>
                <span>讲解透彻度平均分</span>:
                <b>{$easy}分</b>
            </li>
            <li>
                <span>讲解熟练度平均分</span>:
                <b>{$experience}分</b>
            </li>
            <li>
                <span>思维敏锐度平均分</span>:
                <b>{$fast}分</b>
            </li>
            <li>
                <span>评价</span>:
                <table border="1">
                    <tr>
                        <th>总评价</th>
                        <th>知识准确度</th>
                        <th>内容充实度</th>
                        <th>讲解透彻度</th>
                        <th>讲解熟练度</th>
                        <th>思维敏锐度</th>
                        <th>评论</th>
                    </tr>
                    <foreach name="lists" item="list">
                        <tr>
                            <td>{$list.total}</td>
                            <td>{$list.accuracy}</td>
                            <td>{$list.enrich}</td>
                            <td>{$list.easy}</td>
                            <td>{$list.experience}</td>
                            <td>{$list.fast}</td>
                            <td>{$list.remark}</td>
                        </tr>
                    </foreach>

                </table>

            </li>

        </ul>
    </div>
</block>
